# -*- coding: utf-8 -*-
# @Time    : 2022/7/16 1:57
# @Author  : feng
# @Email   : feng@163.com
# @File    : znx_page.py
# @Software: PyCharm
from selenium.webdriver.common.by import By
from pages.login_page import LoginPage

class XsjhPage(LoginPage):
    '''进入线索页面'''
    url='http://192.168.1.5:8081/crm/index.php?m=leads'
    '''定位器'''
    top_locator=(By.CSS_SELECTOR,"body > div.navbar.navbar-inverse.navbar-fixed-top > div")
    xiansuo_locator=(By.LINK_TEXT,'线索')

    zhuanhuan_locator=(By.LINK_TEXT,'转换')



#进入最上面切换
    def qiehuan_top(self):
        self.driver.find_element(*self.top_locator)
#点击线索
    def click_xiansuo(self):
        self.driver.find_element(*self.xiansuo_locator).click()
#线索转换客户，进入客户信息界面
    def click_zhuanhuan(self):
        self.driver.find_element(*self.zhuanhuan_locator).click()
#



